import request from '@/utils/request'

// 查询首页列表
export function listFrontPage(query) {
  return request({
    url: '/frontPage/frontPage/list',
    method: 'get',
    params: query
  })
}

// 查询首页详细
export function getFrontPage(id) {
  return request({
    url: '/frontPage/frontPage/' + id,
    method: 'get'
  })
}

// 新增首页
export function addFrontPage(data) {
  return request({
    url: '/frontPage/frontPage',
    method: 'post',
    data: data
  })
}

// 修改首页
export function updateFrontPage(data) {
  return request({
    url: '/frontPage/frontPage',
    method: 'put',
    data: data
  })
}

// 删除首页
export function delFrontPage(id) {
  return request({
    url: '/frontPage/frontPage/' + id,
    method: 'delete'
  })
}
